import React from "react";
import { Route, BrowserRouter } from "react-router-dom";

import Header from "@/pages/header/header";
import Home from "@/pages/home/home";
import Find from "@/pages/find/find";

import "./App.less";

function App() {
  return (
    <BrowserRouter>
      <div className="body">
        <div className="app">
          <Header></Header>
          <div style={{ width: 1200, margin: "0 auto" }}>
            <Route exact path="/" component={Home} />
            <Route path="/find" component={Find} />
          </div>
        </div>
      </div>
    </BrowserRouter>
  );
}

export default App;
